package com.mitei.ihm.composite;

import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import com.mitei.fwk.ihm.AbstractIHMMainFrame;
import com.mitei.ihm.messages.Messages;

public class IHMMainFrame extends AbstractIHMMainFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTabbedPane tabbedPane = null;
	private JPanel panel = null;
	private IHMFileChooser ihmFileChooser = null;
	private IHMActions ihmActions = null;
	private IHMOptions ihmOptions = null;
	
	public IHMMainFrame(String frameTitle) {
		super(frameTitle);
		
		this.tabbedPane = new JTabbedPane() ;
		this.setContentPane(tabbedPane);
		this.panel = new JPanel();
		
		this.tabbedPane.add(Messages.GENERAL_, this.panel);
		this.panel.setLayout(new GridLayout(2, 1));
		this.ihmFileChooser = new IHMFileChooser();
		this.ihmActions = new IHMActions();
		this.panel.add(ihmFileChooser);
		this.panel.add(ihmActions);
		
		this.ihmOptions = new IHMOptions();
		this.tabbedPane.add(Messages.OPTIONS, this.ihmOptions);
	}

	public IHMFileChooser getIhmFileChooser() {
		return ihmFileChooser;
	}

	public void setIhmFileChooser(IHMFileChooser ihmFileChooser) {
		this.ihmFileChooser = ihmFileChooser;
	}

	public IHMActions getIhmActions() {
		return ihmActions;
	}

	public void setIhmActions(IHMActions ihmActions) {
		this.ihmActions = ihmActions;
	}

	public IHMOptions getIhmOptions() {
		return ihmOptions;
	}

	public void setIhmOptions(IHMOptions ihmOptions) {
		this.ihmOptions = ihmOptions;
	}
}
